<?php

namespace app\utils\ui\ele;

use app\utils\ui\UIView;
use app\utils\ui\vue\Base;
use app\utils\ui\VueView;

class FormItem extends Base implements VueView{

    /**
     * @param string $label
     * @param array $attr
     * @param array|UIView $child
     */
    public function __construct($label,$attr,$child)
    {
        $attr2 = array();
        $attr2['label']=$label;
        $attr2 = array_merge($attr2,$attr);
        parent::__construct($attr2,$child);
    }

    public function render(){
        return parent::base_render('el-form-item');
    }
    
}